import Vue from 'vue'
import Router from 'vue-router'
//首页
import index from '../views/index/index'
//测试
import test from  '../views/test/test'
import test2 from  '../views/test/test2'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      redirect:'/index'
    },
    {
      path:'/test',
      name:'test',
      component: test
    },
    {
      path:'/test2',
      name:'test2',
      component: test2
    },
    {
      path:'/index',
      name:'index',
      meta:{title:'首页'},
      component:index
    }
  ]
})
